package com.tjshop.android.model;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ListView;

import com.tjshop.android.R;
import com.tjshop.android.adapter.NewGoodsAdapter;
import com.tjshop.android.fragment.AbstractItem;
import com.tjshop.android.model.tj.HomeData;

public class GuestTitleItemTitle extends AbstractItem {
	private HomeData homeData;
	private LayoutInflater mInflater;
	private Context context;

	public GuestTitleItemTitle(Context mContext, HomeData homeData,
			LayoutInflater mInflater) {
		super(mContext);
		this.homeData = homeData;
		this.mInflater = mInflater;
		this.context = mContext;
	}

	@Override
	public View inflateSelf(final LayoutInflater inflater) {
		return inflater
				.inflate(
						R.layout.inc_activity_main_fragment_home_item_guest_title,
						null);
	}

	@Override
	public String getType() {
		return "item_guest_title";
	}

	@Override
	public void fillViewWithData(final View view) {
		initCuessYouLike(view);
	}

	/**
	 * 初始化猜你喜欢。
	 * 
	 * @param container
	 */
	private void initCuessYouLike(final View container) {

		// guess_you_like_adapter adapter = new guess_you_like_adapter(
		// homeData.getCouponList(), mInflater);
		// // 获得GridView实例并进行设置
		// ListView lv = (ListView) container
		// .findViewById(R.id.listview_fragment_home_shop_list);
		// lv.setAdapter(adapter); // 为GridView设置数据源
		// // lv.setOnItemClickListener(new ItemClickListener());
	}

}
